<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/1/22/022
  Time: 17:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>公告列表</title>
</head>
<body>
   <H2>所有公告</H2>
   <table>
       <tr>
           <td>编号</td>
           <td>添加时间</td>
           <td>内容</td>
           <td>添加人</td>
       </tr>
      <c:forEach items="${nlist}" var="n">
           <tr>
               <td>${n.id}</td>
               <td><fmt:formatDate value="${n.intime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
               <td>${n.content}</td>
               <td>${n.author.uname}</td>
           </tr>
       </c:forEach>

   </table>


</body>
</html>
